#include <iostream>
#include <unistd.h>
#include <string.h>
#include "ShareMemory.hpp"

int main()
{
    shm.CreateShm();
    shm.AttachShm();

    //这里进行IPC
    char *strinfo = (char*)shm.GetAddr();

    while(true)
    {
        printf("%s\n",strinfo);
        sleep(1);
    }

    shm.DetachShm();
    shm.DeleteShm();

    return 0;
}
